<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Document</title>
    <style>
        *{
            list-style:none;
        }
        li{
            width: 200px;
            height: auto;
            float:left;
            margin-right: 10px;
        }
        li img{
            width: 100%;
        }
    </style>
</head>
<body>
    <ul>
        <li>
            <img src="./images/liudehua.jpg" alt="">
        </li>
        <li>
            <img src="./images/zhangxueyou.jpg" alt="">
        </li>
        <li>
            <img src="./images/liming.jpg" alt="">
        </li>
        <li>
            <img src="./images/guofucheng.jpg" alt="">
        </li>
    </ul>

    <script>
        //onresize 当视口的大小发生改变的时候, 会触发该事件
        window.onresize = function(){
            console.log(document.documentElement.clientWidth, window.innerWidth);
        }
    </script>
</body>
</html>